<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<ui:composition template="template.xhtml">

	<ui:define name="title">
		<f:view>
			<title>Connexion</title>
		</f:view>
	</ui:define>

	<ui:define name="body">
		<f:view>
		<h:form id="connexionForm" action="detailCommande.xhtml">
		<table>
			<tr>
				<td>
					<h:outputText value="Identifiant : " />
				</td>
				<td>
					<h:inputText value="#{manager.clientConnecte.login}"  required = "true"/>
				</td>
			</tr>
			<tr>
				<td>
					<h:outputText value="Mot de passe : " />
				</td>
				<td>
					<h:inputSecret value="#{manager.clientConnecte.mot_de_passe}"  required = "true"/>
				</td>
			</tr>
		</table>
			<h:commandButton value="Connexion" action="#{manager.connexionClient}"/>
			<br></br>
			<div><h:messages errorStyle="erreur" /></div>
		</h:form>
		</f:view>
	</ui:define>
	
</ui:composition>

</html>